@extends('huweize.layouts.userHome');
@section('title','总收入-阅文作家专区')
@section('main')
    <div class="col-md-12 workHeader">
        <h3>收入明细</h3>
    </div>
    <table class="table table-striped table-hover">
        <tr>
            <th>收入来源</th>
            <th>收入金额</th>
            <th>收入分类</th>
            <th>收入时间</th>
            <th>操作</th>
        </tr>
        @foreach($money as $k)
        <tr>
            <td>《{{$k->bookin}}》</td>
            <td>{{$k->sum}}</td>
            <td>
                @if($k->type == 1)
                    点券收入
                    @elseif($k->type == 2)
                    打赏收入
                    @else
                    数据丢失了
                @endif
            </td>
            <td>{{date('Y-m-d H:i:s',$k->data)}}</td>
            <td>
                <a href="{{url('huweize/home/userPayment/order/'.$k->id)}}" class="btn btn-info">排序</a>
            </td>
        </tr>
        @endforeach
    </table>



@endsection
